//
//  BaseTableViewController.h
//  RedManStock
//
//  Created by lanou3g on 15/7/19.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MJRefresh.h"
#import "ParameterHeader.h"
#import "UIImageView+WebCache.h"
#import "UIDefine.h"
#import "MBProgressHUD.h"
#import "MyHandle.h"
//#import "MBProgressHUD.h"
@interface BaseTableViewController : UITableViewController

@property (nonatomic,assign) BOOL update;
@property (nonatomic,assign) BOOL headerOrNot;
@property (nonatomic,assign) BOOL footerOrNot;

//需要的地方: 我的账户，股票信息，大盘信息等，基类中目前不添加
//@property (nonatomic,retain) MBProgressHUD *hud;


- (instancetype)initWithHeader:(BOOL)HeaderOrNot
                        footer:(BOOL)footerOrNot;

//下拉刷新，负责网址的拼接
- (void)loadNewData;

//上拉加载 负责网址的拼接，和参数的改变等等
- (void)loadMoreData;


//公有方法: 数据解析，给数据源赋值，刷新视图，结束refresh
- (void)dataSourceWithJasonDic:(NSDictionary *)requestDic;

@end
